<div class="m10 w600">
<form id="form" action="{url('user/edit')}">
<input type="hidden" name="id" value="{$id}"/>
{if $fid == 1}
<input type="hidden" name="group_id" value="1"/>
{/if}
<table class="table table-th">
{if $fid != 1}
    <tr><th>管理权限:</th><td>
<select class="select" name="group_id" datatype="*">
{loop $auth $vo}
    <option value="{$vo['id']}" {if $info['group_id'] == $vo['id']}selected="selected"{/if}>{$vo['name']}</option>
{/loop}
</select>
    </td></tr>
{/if}
    <tr>
        <th>用户名:</th>
        <td><input datatype="s" nullmsg="请输入用户名" class="input" type="text" name="username" value="{$info['username']}"/></td>
    </tr>
    <tr>
        <th>新的密码:</th>
        <td><input ignore="ignore" datatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" class="input" type="password" name="password"  value=""/></td>
    </tr>
    <tr>
        <th>确认秘密:</th>
        <td><input ignore="ignore" datatype="s" recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！" class="input" type="password" name="chackpassword"/></td>
    </tr>
</table>
<div class="btn fn-tac">
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
})
</script>